﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using V = Science.Mathematics.VectorCalculus;

namespace VectorCalculus5Ed.Chapter1.Section2
{
    public class Example03
    {
        public Example03()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
		public void Compute()
		{
            V.Point p = new V.Point(3);
            p[0] = 1.0;
            p[1] = 0.0;
            p[2] = 0.0;

            V.Point q = new V.Point(3);
            q[0] = 0.0;
            q[1] = 1.0;
            q[2] = 0.0;

            V.Distance d = new V.Distance();

            result += d.FromPointToPoint(p, q).ToString();             
        }
    }
}

// 1.4142135623731